﻿using Microsoft.EntityFrameworkCore;
using SystemWFH.Domain;

namespace SystemWFH.Infrstructer
{
    /// <summary>
    /// 上下文对象
    /// </summary>
    public class SystemWFHDbContext:DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options"></param>
        public SystemWFHDbContext(DbContextOptions<SystemWFHDbContext> options) : base(options) { }
        /// <summary>
        /// 设备信息
        /// </summary>
        public DbSet<Equipment> Equipments { get; set; }
        /// <summary>
        /// 巡检信息
        /// </summary>
        public DbSet<Inspection> Inspections { get; set; }
        /// <summary>
        /// 保养信息
        /// </summary>
        public DbSet<Maintenance> Maintenances { get; set; }
        /// <summary>
        /// 关联表
        /// </summary>
        public DbSet<Relevancy> Relevancys { get; set; }
        /// <summary>
        /// 维修进度信息
        /// </summary>
        public DbSet<RepairProgre> RepairProgres { get; set; }
        /// <summary>
        /// 车间信息
        /// </summary>
        public DbSet<Workshop> Workshops { get; set; }
        /// <summary>
        /// 车间信息
        /// </summary>
        public DbSet<ProductionPlanning> ProductionPlannings { get; set; }
        /// <summary>
        ///  复检信息
        /// </summary>
        public DbSet<Review>  Reviews { get; set; }

    }
}
